package banking;

public class Customer {
    private String firstName;
    private String lastName;
    private Account[] account = new Account[5];
    private int numberOfAccount;

    public Customer(String f, String l) {
        this.firstName = f;
        this.lastName = l;
        numberOfAccount = 0;
    }

    public void addAccount(Account account) {
        this.account[numberOfAccount] = account;
        numberOfAccount++;
    }

    public Account getAccount(int index) {
        return this.account[index];
    }

    public int getNumOfAccounts() {
        return this.numberOfAccount;
    }


    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

}
